#include <iostream>
#include <string>
#include "split_string.h"
#include "split_string_test.h"
using std::cout;
using std::endl;
void SplitStringTest::testSplitNormal(){
	string s = "name|like bb|:::";
	vector<string> v = split(s, '|');
	for(vector<string>::size_type i = 0; i != v.size(); ++i)
		cout << v[i] <<" ";	
    cout << endl << "testSplitNormal() OK!" << endl;       
}

void SplitStringTest::testSplitBlank(){
	string s = "";
	vector<string> v = split(s, '|');
	 for(vector<string>::size_type i = 0; i != v.size(); ++i)
           cout << v[i] << " ";
    cout << "testSplitBlank() OK!" << endl;       
}
